package com.example.hotelrear.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.hotelrear.entity.Config;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
<<<<<<< HEAD
import org.springframework.stereotype.Service;

import java.util.List;
=======
>>>>>>> c858df565d55deb60e87bd48c878762d1fd5080a

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author FengXiao
 * @since 2023-08-28
 */
@Mapper
public interface ConfigMapper extends BaseMapper<Config> {
<<<<<<< HEAD
    @Select("select * from config")
    public List<Config> listAll();
=======
    @Override
    int insert(Config config);
    @Select("select * from config c where c.id like '%${id}%' ")
    IPage<Config> selectPage(IPage<Config> page,Integer id);

>>>>>>> c858df565d55deb60e87bd48c878762d1fd5080a
}
